草庐IT

ModelSim报错:Instantiation of ‘***‘ failed. The design unit was not found.

全部标签

nginx配置https后报错nginx: [emerg] https protocol requires SSL support in XXX.conf详细解决方法

一、前言最近,在测试环境的nginx里增加了一个https配置:location/api-meeting-qq/{proxy_passhttps://api.meeting.qq.com/;}然后,执行命令://这个是nginx启动文件的路径,根据实际情况自行更改sudo/home/useradmin/nginx/sbin/nginx-sreload结果,nginx就报错了:nginx:[emerg]httpsprotocolrequiresSSLsupportin/home/useradmin/nginx/conf.d/trainNginx.conf:9二、解决方法百度发现,是之前安装ngi

ruby - 尝试在 OSX BUILD FAILED 上使用 rbenv 安装 ruby​​ 2.1.2

所以,正如标题所示,我正在尝试安装ruby​​2.1.2,尽管我也尝试安装其他版本,但我遇到了同样的错误。我正在运行OSX10.9.2。我试过:安装新的gcc编译器,通过brewinstallgcc47安装更新的OSX命令行工具卸载rbenv并重试重启机器这是我得到的总和:rbenvinstall2.1.2Downloadingruby-2.1.2.tar.gz...->http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635Installin

ruby-on-rails - Capistrano bundler :install fails

我正在尝试使用Capistrano3.0将我的Rails应用程序部署到EC2实例中。我现在在运行“capproductiondeploy”或“capproductionbundler:install”时出现以下输出。DEBUG[5b379979]Running/usr/bin/enviftest!-d/var/www/app/current;thenecho"Directorydoesnotexist'/var/www/app/current'"1>&2;false;fionec2-75-101-200-185.compute-1.amazonaws.comDEBUG[5b379979

ruby - 使用 rbenv BUILD FAILED 安装 ruby​​-2.0.0-p0

所以我尝试通过rbenv在运行在VirtualBox上的新ubuntu12.04LTS上安装ruby​​。我从https://github.com/sstephenson/rbenv得到了rbenv和ruby​​-build来自https://github.com/sstephenson/ruby-build.然后我运行以下但构建失败:(rbenvinstall2.0.0-p0Downloadingruby-2.0.0-p0.tar.gz...->http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gzInstallingru

ruby-on-rails - 如何在 Ubuntu 16.04 上安装 mysql2 [错误 : Error installing mysql2: ERROR: Failed to build gem native extension.]

这个问题在这里已经有了答案:Errorinstallingmysql2:Failedtobuildgemnativeextension(32个答案)关闭5年前。我不知道在ubuntu上安装mysql2:(sudogeminstallmysql2Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmysql2:ERROR:Failedtobuildgemnativeextension.currentdirectory:/var/lib/gems/2.3.0/gems/mysql2-0.4.4/ext/my

Spring 国际化遇到的坑 No message found under code ‘xxx.xxxx‘ for locale ‘zh_CN‘

Spring国际化遇到的坑org.springframework.context.NoSuchMessageException:Nomessagefoundundercode‘xxx.xxxx’forlocale‘zh_CN’背景以前做的项目客户群体只有国内的客户,从来没有考虑过语言文字的问题。这次有一个需求的返回内容,要根据客户设置的语言返回不同的语言。尝试使用了以后,结果发现怎么都不好使,一直报的一个错误如下:org.springframework.context.NoSuchMessageException:Nomessagefoundundercode'user.name'forloc

ruby-on-rails - 安装 "nio4r": Failed to build gem native extension 时的 rails 5.0.0

这是日志:http://pastebin.com/CAgur9xdInstallingnio4r1.2.1withnativeextensionsGem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.C:/RailsInstaller/Ruby2.2.0/bin/ruby.exe-r./siteconf20160720-8272-c88sgk.rbextconf.rb--with-cflags=-std=c99checkingforunistd.h...***extconf.rbfailed***Couldnotcreat

ruby-on-rails - rails/ ruby : TimeWithZone comparison inexplicably failing for equivalent values

我在当前项目中比较DateTime时遇到了一段糟糕的时光(没有双关语意),特别是比较ActiveSupport::TimeWithZone的两个实例。问题是我的两个TimeWithZone实例具有相同的值,但所有比较都表明它们不同。执行调试时暂停(使用RubyMine),可以看到如下信息:timestamp={ActiveSupport::TimeWithZone}2014-08-0110:33:36UTCstarted_at={ActiveSupport::TimeWithZone}2014-08-0110:33:36UTCtimestamp.inspect="Fri,01Aug20

ruby - `sort_by' : comparison of Array with Array failed (no nil data)

classCustomSorterattr_accessor:start_date,:availabledefinitialize(start_date,available)@start_date=Time.mktime(*start_date.split('-'))@available=availableendendcs1=CustomSorter.new('2015-08-01',2)cs2=CustomSorter.new('2015-08-02',1)cs3=CustomSorter.new('2016-01-01',1)cs4=CustomSorter.new('2015-0

nvm报错Now using node v版本号 (64-bit)解决方法

nvm报错Nowusingnodev版本号(64-bit)解决方法先上报错(安装后的一些问题请直接跳到尾部查看)安装NVM的原因是使用React时addreact-redux时提示我node版本问题,遂打算安装一Node版本管理工具因为我电脑上很早就安装了Node,安装NVM时提示我是否覆盖并管理本地已有版本,我选了Yes之后安装成功(后来检查发现和版本没关系,是因为我在node里去ADD真离谱自己这操作)安装NVM注意问题1.若修改安装路径一定补上nodejs2.打开安装文件位置3.增加以下映射node_mirror:npm.taobao.org/mirrors/node/npm_mirro